package com.wushi.lenovo.asia5b.app_ui.other.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.mvp.base.BaseDialog;
import com.wushi.lenovo.asia5b.R;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by zhangyuncai on 2019/1/24.
 */
public class OrderMarkDialog extends BaseDialog {
    @BindView(R.id.tv_order_remark)
    TextView tv_order_remark;
    @BindView(R.id.tv_order_title)
    TextView tv_order_title;
    String title;
    String remark;

    public OrderMarkDialog(Context context, String title, String remark) {
        super(context);
        this.remark = remark;
        this.title = title;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_order_mark;
    }

    @Override
    protected void initView() {
        tv_order_remark.setText(remark);
        tv_order_title.setText(title);
    }


    @Override
    protected void initListener() {
    }

    @OnClick({R.id.bt_dialog_ok})
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt_dialog_ok: {
                dismiss();
            }
            break;
            default:
                break;
        }

    }

    @Override
    protected int getGravity() {
        return Gravity.CENTER;
    }

    @Override
    protected int getWidthStyle() {
        return getScreenWidth(0.8f);
    }
}
